buttonaccessible: Stop looking at the button's image
authorTimm Bäder <mail@baedert.org>
Fri, 14 Oct 2016 13:58:48 +0000 (15:58 +0200)
committerBenjamin Otte <otte@redhat.com>
Mon, 17 Oct 2016 22:29:19 +0000 (00:29 +0200)
gtk/a11y/gtkbuttonaccessible.c

index 4873399e05a4515071abcd02f0a7c0baeee105b9..90fb2595119f4bea9442561ef42b35319f61916b 100644 (file)
@@ -60,7 +60,7 @@ get_image_from_button (GtkWidget *button)
 {
   GtkWidget *image;
 
-  image = gtk_button_get_image (GTK_BUTTON (button));
+  image = gtk_bin_get_child (GTK_BIN (button));
   if (GTK_IS_IMAGE (image))
     return image;